package scribes.mybus.ejb;



import java.util.Date;
import java.util.List;

import scribes.mybus.data.bus;

public class BusInfoOutput {

	//double station_latitude;	//----Used for only retrieving the data for KML output
	//double station_longitude;	
	String stopname;	
	//int id;	
	String location;
	String routeStatus;
	//String message;
	int passengerCount;
	//int driverId;
	String operationCode;
	int bus_id;
	Date timestamp;


	

	public BusInfoOutput(List<bus> bus) {
		// TODO Auto-generated constructor stub
		System.out.println("BusInfoOutput constructor: getting list");
		for (bus temp: bus)
		{
			
		//setStation_latitude(temp.getLatitude());
		//setStation_latitude(temp.getLongitude());
		//setStation_latitude(temp.getName());
		//setId(temp.getPnumber());
		//setDriverId(temp.getDriver_id());
			setLocation(temp.getLocation());
		setRouteStatus(temp.getRoute_status());
		setOperationCode(temp.getOperation_code());
		setPassengerCount(temp.getPassenger_count());
		//setMessage(temp.getMessage());
		setBus_id(temp.getBus_id());
         setTimestamp(temp.getTimestamp());	
		}
		}



	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}


	public int getBus_id() {
		return bus_id;
	}

	public void setBus_id(int bus_id) {
		this.bus_id = bus_id;
	}
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getRouteStatus() {
		return routeStatus;
	}

	public void setRouteStatus(String routeStatus) {
		this.routeStatus = routeStatus;
	}

	
	public int getPassengerCount() {
		return passengerCount;
	}

	public void setPassengerCount(int passengerCount) {
		this.passengerCount = passengerCount;
	}

	
	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}
	
	public String getStopname() {
		return stopname;
	}

	public void setStopname(String stopname) {
		this.stopname = stopname;
	}

	
}
